package com.codeoss.module.sale.pagebean;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.codeoss.framework.view.pagebean.mobile.MFormViewPageBean;
import com.codeoss.module.sale.service.ISaleQuotationService;

@Service("mSaleQuotationFormViewPageBean")
public class MSaleQuotationFormViewPageBean extends MFormViewPageBean {
	@Autowired
	private ISaleQuotationService saleQuotationService;

	public BigDecimal calculateAmountTotal() {
		Long keyValue=(Long)getCurrentKeyValue();
		return saleQuotationService.calculateAmountTotal(keyValue);
	}
	
	public BigDecimal calculateAmountUntaxed() {
		Long keyValue=(Long)getCurrentKeyValue();
		return saleQuotationService.calculateAmountUntaxed(keyValue);
	}
	
	public BigDecimal calculateAmountTax() {
		Long keyValue=(Long)getCurrentKeyValue();
		return saleQuotationService.calculateAmountTax(keyValue);
	}
}
